import AttentionBox from '../chat_util/attention/Index.vue';
import ChatBox from '../chat_util/box/Index.vue';
import { Component, Vue } from 'vue-property-decorator'
import { Attention } from '@entity/chat';

@Component({
    components: {
        AttentionBox, ChatBox
    }
})
export class PrivateMsgView extends Vue {

    /** 已选择联系人的下标 */
    private selected: number = 0;

    /** 联系人列表 */
    private attentionList: Array<Attention> = this.$store.getters.attentionList();

    /** 选择的联系人改变时调用, 更新已选择联系人下标 */
    private selectChanged(index: number): void {
        this.selected = index;
    }

}